/*
 * UserCookie.java
 * Copyright 2021 Qunhe Tech, all rights reserved.
 * Qunhe PROPRIETARY/CONFIDENTIAL, any form of usage is subject to approval.
 */

package top.bbman.boot.auth.vo;

import java.io.Serializable;

public class UserCookie implements Serializable {
    private static final long serialVersionUID = 7923004043175894282L;

    private String domain;
    private String name;
    private String value;
    private int maxAge = -1;
    private String path;
    private boolean httpOnly;
    /**
     * cookie same site  : true 时。
     * 设置　SameSite=None
     */
    private boolean cookieSameSite;

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(int maxAge) {
        this.maxAge = maxAge;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isHttpOnly() {
        return httpOnly;
    }

    public void setHttpOnly(boolean httpOnly) {
        this.httpOnly = httpOnly;
    }

    public boolean getCookieSameSite() {
        return cookieSameSite;
    }

    public void setCookieSameSite(boolean cookieSameSite) {
        this.cookieSameSite = cookieSameSite;
    }
}
